import request from '@/utils/request'

export default {

  getList: function(data) {
    return request({
      url: '/customer/listByPage',
      method: 'post',
      data
    })
  },
  save: function(data) {
    return request({
      url: '/customer/save',
      method: 'post',
      data
    })
  },
  changeStatus: function(id) {
    return request({
      url: '/customer/changeStatus/'+id,
      method: 'get'
    })
  },
  remove: function(id) {
    return request({
      url: '/customer/delete/'+id,
      method: 'get'
    })
  },
  getOnlyNameList: function() {
    return request({
      url: '/customer/getOnlyNameList',
      method: 'get'
    })
  },
}
